dnl Process this file with autoconf to produce a configure script.
AC_INIT([SAT], [0.1], [deba@inf.elte], [sat])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects nostdinc])
AC_CONFIG_SRCDIR([src/simanncluster.cpp])
AM_CONFIG_HEADER([config.h])
AC_PREREQ([2.59])

dnl Save user defined CXXFLAGS
dnl lx_user_cxxflags="$CXXFLAGS"

dnl Checks for programs.
AM_PROG_CC_C_O
AC_PROG_CXX
AC_PROG_CXXCPP
AC_PROG_INSTALL
AC_DISABLE_SHARED
AC_PROG_LIBTOOL

dnl This is tested only with gcc-3.4 and icc-8.0
dnl LX_SET_CXXFLAGS

dnl Checks for libraries.
PKG_CHECK_MODULES([GSL], gsl >= 1.8)
LX_CHECK_HDF
LX_CHECK_LEMON

dnl Checks for header files.
AC_CHECK_HEADERS(limits.h sys/time.h sys/times.h unistd.h)

dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_C_INLINE
AC_TYPE_SIZE_T
AC_HEADER_TIME
AC_STRUCT_TM

dnl Checks for library functions.
AC_HEADER_STDC
AC_CHECK_FUNCS(gettimeofday times ctime_r)

AC_CONFIG_FILES([Makefile])

AC_OUTPUT

echo
echo '****************************** SUMMARY ******************************'
echo
echo Package version............... : $PACKAGE-$VERSION
echo
echo C++ compiler.................. : $CXX
echo C++ compiles flags............ : $CXXFLAGS
